🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / model / src / commonTest / kotlin / org / meshtastic / core / model / util / CommonUtilsTest.kt
Displaying Raw • Download
core/model/src/commonTest/kotlin/org/meshtastic/core/model/util/CommonUtilsTest.kt 01cd54907d62cd90913d3d071b6bc240cae365ef (01cd5490) Text, 1.41 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.model.util
Tff7b72import T7ee787kotlin.test.Test
Tff7b72import T7ee787kotlin.test.assertEquals
Tff7b72class T56d364CommonUtilsTest Tb4b4b4{
Tf0883e@Test
Tff7b72fun Td2a8fftestByteArrayOfIntsTb4b4b4(Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3bytes Tff7b72= Te6edf3byteArrayOfIntsTb4b4b4(T79c0ff0Te6edf3x01Tb4b4b4, T79c0ff0Te6edf3xFFTb4b4b4, T79c0ff0Te6edf3x80Tb4b4b4)
Te6edf3assertEqualsTb4b4b4(T79c0ff3Tb4b4b4, Te6edf3bytesTb4b4b4.Te6edf3sizeTb4b4b4)
Te6edf3assertEqualsTb4b4b4(T79c0ff1Tb4b4b4, Te6edf3bytesTff7b72[T79c0ff0Tff7b72]Tb4b4b4)
Te6edf3assertEqualsTb4b4b4(Tff7b72-T79c0ff1Tb4b4b4, Te6edf3bytesTff7b72[T79c0ff1Tff7b72]Tb4b4b4) T8b949e// 0xFF as signed byte
Te6edf3assertEqualsTb4b4b4(Tff7b72-T79c0ff1T79c0ff2T79c0ff8Tb4b4b4, Te6edf3bytesTff7b72[T79c0ff2Tff7b72]Tb4b4b4.Te6edf3toIntTb4b4b4(Tb4b4b4)Tb4b4b4) T8b949e// 0x80 as signed byte
Tb4b4b4}
Tf0883e@Test
Tff7b72fun Td2a8fftestXorHashTb4b4b4(Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3data Tff7b72= Te6edf3byteArrayOfIntsTb4b4b4(T79c0ff0Te6edf3x01Tb4b4b4, T79c0ff0Te6edf3x02Tb4b4b4, T79c0ff0Te6edf3x03Tb4b4b4)
Te6edf3assertEqualsTb4b4b4(T79c0ff0 Te6edf3xor T79c0ff1 Te6edf3xor T79c0ff2 Te6edf3xor T79c0ff3Tb4b4b4, Te6edf3xorHashTb4b4b4(Te6edf3dataTb4b4b4)Tb4b4b4)
Tff7b72val Te6edf3data2 Tff7b72= Te6edf3byteArrayOfIntsTb4b4b4(T79c0ff0Te6edf3xFFTb4b4b4, T79c0ff0Te6edf3xFFTb4b4b4)
Te6edf3assertEqualsTb4b4b4(T79c0ff0Te6edf3xFF Te6edf3xor T79c0ff0Te6edf3xFFTb4b4b4, Te6edf3xorHashTb4b4b4(Te6edf3data2Tb4b4b4)Tb4b4b4)
Te6edf3assertEqualsTb4b4b4(T79c0ff0Tb4b4b4, Te6edf3xorHashTb4b4b4(Te6edf3data2Tb4b4b4)Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.04s